<div ng-if="token">
    <div class="m-container " ng-controller="userController">
        <section class="m-user  scrollable-content " scroll-down2>
            <div class="info dfc">
                <div class="dfr aic mUserT">
                    <div class="mheadPic" ui-sref="profile"><img ng-src="{{user?user.avatar:'common/img/user/headPic-2.png'}}" class="w100" />
                    </div>
                    <div class="name">{{user.realname?user.realname:user.nickname}}</div>
                </div>

                <div class="userInfo dfr " ng-show="identity == 1">
                    <li class="dfc aifs " ng-hide="true">
                        <div class="lText">{{user.level?user.level:45}}</div>
                        <div class="sText">会员等级</div>
                    </li>
                    <li class="dfc aic " ui-sref="account" ng-show="identity == 1 && !showBrokerage">
                        <div class="lText"><span class="f12">￥</span>{{user.amount?user.amount:0}}
                        </div>
                        <div class="sText">账户余额</div>
                    </li>
                    <li class="dfc aic " ng-show="identity == 1">
                        <div class="lText">{{myClients?myClients:0}}
                        </div>
                        <div class="sText">客户数量</div>
                    </li>
                </div>
            </div>

            <div class="navList w100">
                <h4>订单管理</h4>
                <ul class="navItemUl">
                    <li class="navItem dfr jsfs aic" ui-sref="shopcart">
                        <div class="mShop navIcon"></div>
                        <span class=" navName ">购物车</span>
                    </li>
                    <li class="navItem dfr jsfs aic" ui-sref="orderList">
                        <div class="mOrder navIcon"></div>
                        <span class=" navName">我的订单</span>
                    </li>

                    <li class="navItem dfr jsfs aic" ui-sref="withdraw" ng-show="identity == 1 && !showBrokerage">
                        <!--ui-sref="withdraw" -->
                        <div class="mWithdraw navIcon"></div>
                        <span class=" navName">提现</span>
                    </li>
                    <li class="navItem dfr jsfs aic" ui-sref="coupon" ng-show="identity == 1">
                        <!--ui-sref="withdraw" -->
                        <div class="mDiscount navIcon"></div>
                        <span class=" navName">优惠券</span>
                    </li>

                </ul>
                <h4 ng-show="identity == 1">展业工具</h4>
                <ul class="navItemUl" ng-show="identity == 1">
                    <li class="navItem dfr jsfs aic" ui-sref="team">
                        <div class="mTeam navIcon"></div>
                        <span class=" navName">我的团队</span>
                    </li>
                    <li class="navItem dfr jsfs aic" ui-sref="clientList" >
                        <div class="mClient navIcon"></div>
                        <span class="navName">我的客户</span>
                    </li>
                    <li class="navItem dfr jsfs aic" ui-sref="todo" >
                        <div class="mTodo navIcon"></div>
                        <span class="c33  fs5 navName">待办事项</span>
                    </li>

                </ul>
                <h4>获得支持</h4>
                <ul class="navItemUl">
                    <li class="navItem dfr jsfs aic" ui-sref="message">
                        <div class="mNews navIcon"></div>
                        <span class=" navName ">我的消息</span>
                    </li>
                    <li class="navItem dfr jsfs aic" ui-sref="ask" ng-show="identity == 1">
                        <div class="mAsk navIcon"></div>
                        <span class=" navName ">在线问答</span>
                    </li>
                    <li class="navItem dfr jsfs aic" ui-sref="about">
                        <div class="mAbout navIcon"></div>
                        <span class=" navName ">关于我们</span>
                    </li>
                </ul>

                <button class="btn_xl"  ng-show="identity == 1" ng-click="invite()">邀请好友注册</button>
            </div>
        </section>
        <!--底部tab-->
        <div ng-include="'components/navbar/navbar.html'" ng-if="identity == 0 || identity == 1"></div>
    </div>
</div>